﻿<div class="a-col">
	<?php  $this->load->view('leftProductMenu'); ?>
</div>
<div class="b-col">
	
	<?php echo $bread_crumbs; ?>
	
	<?php 
		$products = $products_model;
		$currentProduct = $products->getProductById($current_product_id);
	?>
		<div class="productInfoImageContainer">
			<div class="vertical-middle">
				<img class="productInfo-img" src="/smaragd/resources/products/<?php echo $currentProduct->image; ?>" />
			</div>
		</div>
		
		<div class="productInfo">
			<h1><?php echo $currentProduct->name; ?></h1>
			<div><?php echo $currentProduct->description; ?></div>
			<h2><?php echo $currentProduct->price; ?> Ft</h2>
			<form role="form" action="<?php echo base_url(); ?>cart/add" method="post">
				<input id="quantity" style="width: 87px;" type="number" name="qty" value="1"  min="1" />
				<input type="id" name="id" style="display: none;" value="<?php echo $currentProduct->id; ?>" />
				<br><br><button type="submit" class="btn btn-success">Kosárba rak<span style="margin-left: 11px;" class="glyphicon glyphicon-shopping-cart"></span></button>
			</form>
		</div>
</div>